package com.explment.lens.controller.menu;

import com.explment.lens.entity.SysMenuOptionsEntity;
import com.explment.lens.service.SysMenuOptionsService;
import org.springframework.web.bind.annotation.*;
import org.springframework.beans.factory.annotation.Autowired;
import com.explment.lens.utils.result.ResultData;
/**
 * 菜单下的功能操作 controller
 */
@RestController
@RequestMapping("/sysMenuOptionsEntity")
public class SysMenuOptionsController {
    @Autowired
    private SysMenuOptionsService sysMenuOptionsEntityService;

    @GetMapping("/{id}")
    public ResultData getById(@PathVariable String id) {
        return ResultData.success(sysMenuOptionsEntityService.getById(id));
    }
}